wordpress disable posts

110

// add  this hook into function.php  file it will disable the post menu from 
//Left Sidebar in wp-admin Dashboard

function remove_posts_menu() {
    remove_menu_page('edit.php');
}
add_action('admin_menu', 'remove_posts_menu');

Comments

Submit
0 Comments